makeSplitTxn

fun makeSplitTxn(parentTxn: ParentTxn, parentAmount: Long, splitAmount: Long, rate: Double, account: Account, description: String?, txnId: Long, status: Byte): SplitTxn

Creates a SplitTxn with the parentAmount having a negative effect on the account of parentTxn, and splitAmount having a positive effect on the account of this SplitTxn. The given rate is only used if the parentAmount or splitAmount are zero.


fun makeSplitTxn(parentTxn: ParentTxn, parentAmount: Long, rate: Double, account: Account, description: String?, txnId: Long, status: Byte): SplitTxn

Deprecated

please use the other makeSplitTxn call as the amounts will not be subject to floating point inaccuracies

Creates a SplitTxn with the parentAmount having a negative effect on the account of parentTxn, and splitAmount having a positive effect on the account of this SplitTxn.